import 'package:boss/models/store_table.dart';
import 'package:boss/ui/page/tableManagement/page/sortTable/provider/sort_table_provider.dart';
import 'package:boss/ui/widget/sortList/sort_list.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';

class SortTableList extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Expanded(
      child: Consumer<SortTableProvider>(
        builder: (context, sortTableProvider, _) {
          return SortList<StoreTable>(items: sortTableProvider.tables);
        },
      ),
    );
  }
}
